<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑服务商业务</title>
    <%@ include file="../../common/meta.jsp" %>
    <%@ include file="../../common/common-body.jsp" %>
    <link href="${ctx}/css/page/common-win.css?t=${now}" rel="stylesheet">
    <link href="${ctx}/css/plugins/note/note.css?t=${now}" rel="stylesheet">
    <script src="${ctx}/js/plugins/validate/jquery.validate.custom.js?t=20181024"></script>
    <style>
        #_btnDiv{
            height: 34px;
            margin-bottom: 0px;
        }
        #_lab_mid, #_div_mid{
        <c:if test="${not empty oneIsvBizInfo && oneIsvBizInfo.otherServiceType == 'html'}">
            display : inline;
        </c:if>
        <c:if test="${not empty oneIsvBizInfo && oneIsvBizInfo.otherServiceType != 'html'}">
            display : none;
        </c:if>
        }
    </style>
    <script>
        var editType = '${type}';
        var oneIsvBizInfo = ${oneIsvBizInfo};
        var searchIsvBizInfo = ${searchIsvBizInfo};
    </script>
</head>
<body class="gray-bg">
<div>
    <div class="myContent">
        <div class="tabs-container">
            <div class="tab-content">
                <%--项目简介--%>
                <div id="tab-1" class="tab-pane active">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="ibox float-e-margins myIbox">
                                <div class="ibox-title">
                                    <h5>服务商业务信息</h5>
                                </div>
                                <div class="ibox-content">
                                    <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;基本信息</h5>
                                    <form class="form-horizontal m-t" id="_isvBizDataForm">
                                        <c:choose>
                                            <c:when test="${type=='info'}">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务商名称：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty isvName ? isvName : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">业务名称：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.bizName : ''}</label>
                                                    <label class="col-sm-2 control-label">APPID：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.isvAppId : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">排序：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.sortNum : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">备注：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.remark : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务提供方式：</label>
                                                    <label class="col-sm-3 control-label control-label-content">
                                                        <c:forEach items="${serviceTypeMap}" var="item">
                                                            <c:if test="${not empty oneIsvBizInfo && oneIsvBizInfo.otherServiceType == item.key}">
                                                                ${item.value}
                                                            </c:if>
                                                        </c:forEach>
                                                    </label>
                                                    <c:if test="${not empty oneIsvBizInfo && oneIsvBizInfo.otherServiceType == 'html'}">
                                                        <label class="col-sm-2 control-label">是否有平台中间页：</label>
                                                        <label class="col-sm-3 control-label control-label-content">
                                                                ${not empty oneIsvBizInfo && oneIsvBizInfo.hasMidPage == 'Y' ? '是' : '否'}
                                                        </label>
                                                    </c:if>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;其他业务</h5>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务名称：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceName : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">h5地址：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceUrl : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务说明：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceDesc : ''}</label>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;扩展信息</h5>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">是否平台收费：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.isPlatformChargeStr : ''}</label>
                                                    <label class="col-sm-2 control-label">回款方式：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.cashCollectionTypeStr : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">抽成方式：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.cashPumpingTypeStr : ''}</label>
                                                    <label class="col-sm-2 control-label">抽成额度：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.cashPumpingFee : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">收款账号类型：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingAccountTypeStr : ''}</label>
                                                    <label class="col-sm-2 control-label">收款账号：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingAccountNumber : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">收款人姓名：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingMan : ''}</label>
                                                    <label class="col-sm-2 control-label">收款人电话：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingManPhone : ''}</label>
                                                </div>
                                            </c:when>
                                            <c:otherwise>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务商名称：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty isvName ? isvName : ''}</label>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>业务名称：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="bizCode" id="bizCode" required>
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${bizMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneIsvBizInfo && oneIsvBizInfo.bizCode == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>APPID：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="isvAppId" name="isvAppId" class="form-control" maxlength="32" required value="${not empty oneIsvBizInfo ? oneIsvBizInfo.isvAppId : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">排序：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="sortNum" name="sortNum" class="form-control" maxlength="9" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.sortNum : ''}" isPInteger="true">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">备注：</label>
                                                    <div class="col-sm-8">
                                                        <textarea type="text" id="remark" name="remark" class="form-control" maxlength="255" style="height: 80px; resize: none;">${not empty oneIsvBizInfo ? oneIsvBizInfo.remark : ''}</textarea>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务提供方式：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="otherServiceType" id="otherServiceType" onchange="typeChangeEvent()">
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${serviceTypeMap}" var="item">
                                                                <option value="${item.key}" ${not empty oneIsvBizInfo && oneIsvBizInfo.otherServiceType == item.key? 'selected' : '' }>${item.value}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label" id="_lab_mid">是否有平台中间页：</label>
                                                    <div class="col-sm-3" id="_div_mid">
                                                        <select class="form-control" name="hasMidPage" id="hasMidPage">
                                                            <option value="Y" ${not empty oneIsvBizInfo && oneIsvBizInfo.hasMidPage == 'Y'? 'selected' : '' }>是</option>
                                                            <option value="N" ${not empty oneIsvBizInfo && oneIsvBizInfo.hasMidPage == 'N'? 'selected' : '' }>否</option>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;其他业务</h5>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">服务名称：</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" id="otherServiceName" name="otherServiceName" class="form-control" maxlength="20" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceName : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label"><%--<span id="span_show" style="color: red">*</span>--%>h5地址：</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" id="otherServiceUrl" name="otherServiceUrl" class="form-control" maxlength="1024" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceUrl : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">服务说明：</label>
                                                    <div class="col-sm-8">
                                                        <textarea type="text" id="otherServiceDesc" name="otherServiceDesc" class="form-control" maxlength="1024" style="height: 80px; resize: none;">${not empty oneIsvBizInfo ? oneIsvBizInfo.otherServiceDesc : ''}</textarea>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;扩展信息</h5>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">是否平台收费：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="isPlatformCharge" id="isPlatformCharge">
                                                            <option value="">--请选择--</option>
                                                            <option value="Y" ${not empty oneIsvBizInfo && oneIsvBizInfo.isPlatformCharge == 'Y'? 'selected' : '' }>是</option>
                                                            <option value="N" ${not empty oneIsvBizInfo && oneIsvBizInfo.isPlatformCharge == 'N'? 'selected' : '' }>否</option>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">回款方式：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="cashCollectionType" id="cashCollectionType">
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${cashCollectionTypeMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneIsvBizInfo && oneIsvBizInfo.cashCollectionType == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">抽成方式：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="cashPumpingType" id="cashPumpingType">
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${cashPumpingTypeMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneIsvBizInfo && oneIsvBizInfo.cashPumpingType == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">抽成额度：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="cashPumpingFee" name="cashPumpingFee" class="form-control" maxlength="10" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.cashPumpingFee : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">收款账号类型：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="receivingAccountType" id="receivingAccountType">
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${receivingAccountTypeMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneIsvBizInfo && oneIsvBizInfo.receivingAccountType == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">收款账号：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="receivingAccountNumber" name="receivingAccountNumber" class="form-control" maxlength="32" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingAccountNumber : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">收款人姓名：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="receivingMan" name="receivingMan" class="form-control" maxlength="20" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingMan : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">收款人电话：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="receivingManPhone" name="receivingManPhone" class="form-control" maxlength="20" value="${not empty oneIsvBizInfo ? oneIsvBizInfo.receivingManPhone : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                            </c:otherwise>
                                        </c:choose>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="form-group" id="_btnDiv">
                    <div class="col-sm-4 col-sm-offset-5">
                        <c:if test="${type!='info'}">
                            <input type="button" class="btn btn-primary" onclick="doIsvBizSave()" value="保存">
                        </c:if>
                        <input type="button" class="btn btn-white" onclick="doCheckDataChange()" value="返回">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctx}/js/isv/win/editIsvBizMgr.js?t=${now}"></script>
</body>
</html>

